'use strict';


module.exports = app => {
  const { router, controller } = app;
  const url = '/api/news/pc-web/search'; // 开启路由前缀

  // 新增 用户搜索记录
  // router.post(`${url}/article`, controller.admin.news.pcWeb.search.create);
  // 获取文章列表 带用户搜索记录
  // router.get(`${url}/article`, controller.news.pcWeb.search.getArticle);
  // 获取用户搜索历史记录
  router.get(`${url}/getUserHistory`, controller.news.pcWeb.search.getUserHistory);
  // 获取热门搜索
  router.get(`${url}/getHotSearch`, controller.news.pcWeb.search.getHotSearch);
  // 删除单条用户搜索历史记录
  router.delete(`${url}/delRowSearchHistory/:id`, controller.news.pcWeb.search.delRowSearchHistory);
  // 删除用户所有搜索历史记录
  router.delete(`${url}/delAllSearchHistory`, controller.news.pcWeb.search.delAllSearchHistory);

};
